package com.xxxx.server.controller;


import com.xxxx.server.pojo.PoliticsStatus;
import com.xxxx.server.service.IPoliticsStatusService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author qiuxuechen
 * @since 2021-08-07
 */
@RestController
@RequestMapping("/employee/basic/politics-status")
public class PoliticsStatusController {
    @Autowired
    private IPoliticsStatusService politicsStatusService;
    @ApiOperation("获取政治面貌列表")
    @GetMapping("/")
    public List<PoliticsStatus> getpoliticsStatus(){
        List<PoliticsStatus> list = politicsStatusService.list();
        return list;
    }
}
